package com.smartgame.screens;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.InputProcessor;
import com.smartgame.controllers.AbstractController;
import com.smartgame.controllers.GameController;
import com.smartgame.renderers.AbstractRenderer;
import com.smartgame.renderers.GameRenderer;

public class GameScreen extends AbstractScreen {

	public GameScreen(Game game) {
		super(game);
	}

	@Override
	public void render(float deltaTime) {
		super.render(deltaTime);
		
		// my own rendering goes here!
	}


	@Override
	public AbstractController createAbstractController() {
		if (controller == null) {
			controller = new GameController(game);
		}
		return controller;
	}

	@Override
	public AbstractRenderer createAbstractRenderer() {
		if (renderer == null) {
			renderer = new GameRenderer(controller);
		}
		return renderer;
	}

	@Override
	public InputProcessor getInputProcessor() {
		return controller;
	}
}
